package com.three.vip.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.three.core.entity.UserAddress;
import com.three.core.vo.R;
import com.three.vip.vo.UserAddressFormVo;
import com.three.vip.vo.UserAddressSearchFormVo;

import java.util.List;

/**
 * @author ：JinShiYan
 * @date ：Created in 2025/3/12 18:21
 * @description：
 * @modified By：
 * @version:
 */
public interface UserAddressService {
    R<IPage<UserAddress>> selectByCondition(UserAddressSearchFormVo userAddressSearchFormVo);

    R<String> updateAddress(UserAddressFormVo userAddressFormVo);

    R<UserAddress> selectOneAddress(Integer addressId);

    R<UserAddress> addAddress(UserAddress userAddress);

    R<UserAddress> updateUserAddress(UserAddress userAddress);

    R<String> deleteUserAddress(Integer addressId);

    R<List<UserAddress>> selectAddressById(Integer userId);
}
